package xyz.bali16.module.nav.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("添加导航参数")
public class NavAddParam {

    /**
     * 所属角色id
     */
    @ApiModelProperty(name = "text", value = "导航名字", required = true)
    @NotNull(message = "导航名字不能为空")
    private String name;

    /**
     * 用户名称
     */
    @ApiModelProperty(name = "url", value = "url链接", required = false)
    @NotEmpty(message = "url链接不能为空")
    private String url;
    @ApiModelProperty(name = "status", value = "导航状态", required = true)
    @NotEmpty(message = "导航状态不能为空")
    private Integer status;
    @ApiModelProperty(name = "orderNum", value = "导航顺序", required = true)
    @NotEmpty(message = "导航顺序不能为空")
    Integer orderNum;
}
